﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Imaging;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using QLTV_V2.DataAccess;
using QLTV_V2.BussinessObject;
using QLTV_V2.BussinessLogic;

namespace QLTV_V2
{
    public partial class frmReportBanDoc : Form
    {
        public frmReportBanDoc()
        {
            InitializeComponent();
        }
        public DataTable dtb_BanDoc = new DataTable();
        public int dk;
        private void frmReportBanDoc_Load(object sender, EventArgs e)
        {
            if (dk == 1)//IN thẻ bạn đọc
            {
                CRT_BanDoc crt = new CRT_BanDoc();
                crt.SetDataSource(dtb_BanDoc);
                crystalReportViewer1.ReportSource = crt;
            }
            if (dk == 2)//In phiếu vi phạm
            {
                CRT_PhieuVP crt = new CRT_PhieuVP();
                crt.SetDataSource(dtb_BanDoc);
                crystalReportViewer1.ReportSource = crt;
            }
            if (dk == 3)//In danh sach thống kê bạn đọc
            {
                CRT_ThongkeBanDoc crt = new CRT_ThongkeBanDoc();
                crt.SetDataSource(dtb_BanDoc);
                crystalReportViewer1.ReportSource = crt;
            }
        }
    }
}
